home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Idle / DelayedMethod.h < prev    next >
Text File  |  1997-06-28  |  452b  |  28 lines

  1. // DelayedMethod.h
  2.  
  3. #ifndef DelayedMethod_h
  4. #define DelayedMethod_h
  5.  
  6. #ifndef MethodOf_h
  7. #include "MethodOf.h"
  8. #endif
  9. #ifndef Delayer_h
  10. #include "Delayer.h"
  11. #endif
  12.  
  13. template < class Target >
  14. class DelayedMethod: public MethodOf< Target >,
  15.                             public Delayer
  16.   {
  17.     private:
  18.         ::Method& TheMethod()         { return *this; }
  19.         
  20.     public:
  21.         DelayedMethod( Target *t, MemberType m )
  22.           : MethodOf<Target>( t, m ),
  23.              Delayer( TheMethod() )
  24.           {}
  25.   };
  26.  
  27. #endif
  28.